package com.zhiche.lisa.bms.dao.mapper.statistics;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.zhiche.lisa.bms.dao.model.statistics.StaticWaybillComposite;
import com.zhiche.lisa.bms.pojo.bo.statistics.OrderWaybillBO;
import com.zhiche.lisa.bms.pojo.vo.statistics.WaybillCompositeVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 运单统计综合表 Mapper 接口
 * </p>
 *
 * @author liangpeng
 * @since 2019-01-18
 */
public interface StaticWaybillCompositeMapper extends BaseMapper<StaticWaybillComposite> {

    /**
     * 分页查询
     *
     * @param page
     * @param ew
     * @return
     */
    List<OrderWaybillBO> getOrderWaybillDetailBO(Page<OrderWaybillBO> page, @Param("ew") Wrapper<OrderWaybillBO> ew);

    /**
     * 分页查询
     *
     * @param page
     * @param ew
     * @return
     */
    List<OrderWaybillBO> getOrderWaybillDetailBOForExport(Page<OrderWaybillBO> page, @Param("ew") Wrapper<OrderWaybillBO> ew);

    /**
     * 不分页查询
     *
     * @param ew
     * @return
     */
    List<OrderWaybillBO> getOrderWaybillDetailBO(@Param("ew") Wrapper<OrderWaybillBO> ew);

    /**
     * 获取可以处理价格数据的运单
     *
     * @return
     */
    List<StaticWaybillComposite> getWaitFeePayablePriceCompositePage(Page<StaticWaybillComposite> page, @Param("ew") Wrapper<StaticWaybillComposite> ew);


    /**
     * 获取可以处理价格数据的运单
     *
     * @return
     */
    List<StaticWaybillComposite> getWaitFeePayablePriceComposite(@Param("ew") Wrapper<StaticWaybillComposite> ew);

    /**
     * 获取 成本缺失明细
     *
     * @return
     */
    List<WaybillCompositeVO> getCostMissingDetail();

}
